/*
 * Created: 11.03.2008
 * File: DashboardTopic
 */

package org.urchr.todoist.lib;

import java.util.Vector;

/**
 *
 * @author Kostya
 */
public class DashboardTopic {
    private String name = "";
    private boolean collapsed = false;
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    private Vector tasks = new Vector();
    
    public void addTask(Task t){
        tasks.addElement(t);
    }
    
    public int getTaskCount(){
        return tasks.size();
    }
    
    public Task getTaskAt(int i){
        return (Task) tasks.elementAt(i);
    }

    public boolean isCollapsed() {
        return collapsed;
    }

    public void setCollapsed(boolean collapsed) {
        this.collapsed = collapsed;
    }
}
